package com.example.demo.service;

import com.example.demo.entity.DBConnection;
import com.example.demo.utils.PageInfoNew;

import java.util.List;
import java.util.Map;

public interface DBConnectionService {

    int save(DBConnection dbConnection);

    int update(DBConnection dbConnection);

    DBConnection findById(int id);

    List<Map<String, String>> executeQuery(int id, String sql);

    List<DBConnection> list(int projectId);

    PageInfoNew<DBConnection> page(Integer pageNum, Integer pageSize, Integer projectId);

    void delete(int id);

    int executeUpdate(int id, String sql);
}
